package com.ruoyi.user.service.impl;

import com.ruoyi.user.domain.CheCoupon;
import com.ruoyi.user.mapper.CheCouponMapper;
import com.ruoyi.user.service.ICheCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheCouponServiceImpl implements ICheCouponService {
    @Autowired
    private CheCouponMapper cheCouponMapper;
    @Override
    public List<CheCoupon> selectCheCouponList(CheCoupon cheCoupon) {
        List<CheCoupon> list = cheCouponMapper.selectCheCouponList(cheCoupon);
        return list;
    }

    @Override
    public Integer insertCheCoupon(CheCoupon cheCoupon) {

        return cheCouponMapper.insertCheCoupon(cheCoupon);
    }

    @Override
    public CheCoupon selectCheCouponById(Long id) {
        return cheCouponMapper.selectCheCouponById(id);
    }
}
